<template>
  <div class="anniversary">
    <div class="bannerWrap" id="tree">
      <div class="backTop flex">
        <div class="wordImg" :style="$store.state.app.language === 'zh-CN'
          || $store.state.app.language === 'zh-TW'
          ? `background: url('/static/activity/nbActivity/banner.png') #1f2126 no-repeat;`
          : `background: url('/static/activity/nbActivity/banner1.png') #1f2126 no-repeat;`">
        </div>
      </div>
    </div>
    <!-- 周年庆惊喜转不停-->
    <draw @listenWalletPermission="handleWalletPermission" id="draw"/>
  </div>
</template>

<script>
import Draw from './Draw';

export default {
  name: 'nbActivity', // tron活动
  data() {
    return {
    }
  },
  components: {
    Draw,
  },
  props: {},
  watch: {
  },
  computed: {},
  created() {
    document.title = this.$t(`rout.${this.$route.meta.title}`);
  },
  mounted() {
  },
  beforeDestroy() {
  },
  methods: {
    /**
     * 钱包授权
     */
    handleWalletPermission() {
      const checkWallet = localStorage.getItem('checkWallet');
      // sessionStorage.setItem('checkWalletByChain', 'EOS');
      if (!Number(checkWallet)) {
        this.$emit('listenWalletPermission', true);
        return;
      }
      this.$emit('listenWalletLogin', true);
    },
  },
}
</script>
<style lang="scss" scoped>
$-btn-color: #663C04;
$-btn-back: #F1C89D;
.anniversary {
  margin-bottom: -2px;
  background-image: linear-gradient(to bottom, #1f2126 , #17191e);
  color: #fff;

  .cursorPointer {
    cursor: pointer;
  }

  .bannerWrap {
    // height: 1100px;

    .backTop {
      // padding-top: 100px;
      height: 450px;
      // img {
      //   display: block;
      //   width: 475px;
      //   margin: 0 auto;
      // }

      .wordImg {
        width: 1200px;
        margin: 0 auto;
        height: 450px;
        // background: url('/static/activity/nbActivity/banner.png');
        background-size: 100% 100% !important;
      }
    }
  }

  .title {
    text-align: center;
    font-size: 40px;
    margin: 120px 0 60px 0;
    color: #FFC78A;
  }

  .title1 {
    img {
      display: block;
      width: 234px;
      margin: 50px auto 30px;
    }
  }

  .btnJump {
    span {
      color: $-btn-color;
      background: $-btn-back;
      padding: 10px 20px;
      cursor: pointer;
      border-radius: 5px;
    }
  }
}
</style>

